@using Didsoft.Mvc.Helpers
@model SIOGDE.AccesoDatos.Entidades.PersonaArma
@{
   ViewBag.Title = "PersonaArma";
 }
<link href="~/Content/DataForm.css" rel="stylesheet"/>
@using (Html.BeginForm("DataForm","PersonaArma", FormMethod.Post, new {@class="box common", @id="myDataForm"})) {
     <div class="header">Formulario : PersonaArma</div>
     <fieldset class="boxBody">
         @Html.ValidationMessage("DataFormError")
            <div class="editor-label">
                @Html.LabelFor(model => model.Arma)
            </div>
            <div class="editor-field">
                @Html.AutocompleteFor(model => model.ArmaId_FK, "Arma.Nombre", Url.Action("SearchByFilter","Arma"))
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.Persona)
            </div>
            <div class="editor-field">
                @Html.AutocompleteFor(model => model.PersonaId_FK, "Persona.Nombre", Url.Action("SearchByFilter","Persona"))
            </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.EsActual)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.EsActual)
             @Html.ValidationMessageFor(model => model.EsActual)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.MotivoActualizacion)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.MotivoActualizacion)
             @Html.ValidationMessageFor(model => model.MotivoActualizacion)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.Descripcion)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.Descripcion)
             @Html.ValidationMessageFor(model => model.Descripcion)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.FechaCreacion)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.FechaCreacion)
             @Html.ValidationMessageFor(model => model.FechaCreacion)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.FechaActualizacion)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.FechaActualizacion)
             @Html.ValidationMessageFor(model => model.FechaActualizacion)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.ActualizadoPor)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.ActualizadoPor)
             @Html.ValidationMessageFor(model => model.ActualizadoPor)
         </div>
</fieldset>
<footer>
<input type="submit" class="btnCommon" value="Guardar Datos"/>
<input type="button" class="btnCancel" value="Cancelar y Regresar" onclick="history.go(-1);" />
</footer>
}
@section Scripts{@Scripts.Render("~/bundles/jqueryval")}

